import * as THREE from 'three';
import geometry from '@/mesh/testGeometry'
import box from '@/mesh/boxGeometry'

let GlobalGroup = new THREE.Group();
// 场景光照处理
const light = new THREE.SpotLight( 0xffffff );
light.position.set(280,200,120);
light.castShadow = true;
light.shadow.mapSize.width=2048;	//阴影贴图宽度设置为2048像素
light.shadow.mapSize.height=2048;	//阴影贴图高度设置为2048像素


light.shadow.camera.near = 30;
light.shadow.camera.far = 5000;
light.shadow.camera.fov = 50;

//三维辅助坐标系
const axisHelper = new THREE.AxesHelper(250);

GlobalGroup.add(geometry.boxMesh)
GlobalGroup.add(box.boxMesh)
GlobalGroup.add(light)
GlobalGroup.add(axisHelper)

export default GlobalGroup